#include <stdio.h>
#include <unistd.h>

void lexer_driver(char *argv)
{
		char cmd[120];
		sprintf(cmd, "./lexer %s > %s", argv, "lexer.out");
		system(cmd);
}

void parser_driver(char *argv)
{
		char cmd[120];
		sprintf(cmd, "./parser %s > %s", argv, "parser.out");
		system(cmd);
}

/*int main(int argc, char *argv[])
{

		fprintf(stdout, "LEXER\n\n");
		lexer_driver(argv[1]);
		fprintf(stdout, "PARSER\n\n");
		parser_driver(argv[1]);

		return 0;
}*/

